3.153 \(\int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx\)

Optimal. Leaf size=29 \[ \frac {\tan (c+d x)}{d \left (a^2+i a^2 \tan (c+d x)\right )^2} \]

[Out]

tan(d*x+c)/d/(a^2+I*a^2*tan(d*x+c))^2

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 29, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3487, 34} \[ \frac {\tan (c+d x)}{d \left (a^2+i a^2 \tan (c+d x)\right )^2} \]

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]^4/(a + I*a*Tan[c + d*x])^4,x]

[Out]

Tan[c + d*x]/(d*(a^2 + I*a^2*Tan[c + d*x])^2)

Rule 34

Int[((a_) + (b_.)*(x_))^(m_.)*((c_) + (d_.)*(x_)), x_Symbol] :> Simp[(d*x*(a + b*x)^(m + 1))/(b*(m + 2)), x] /
; FreeQ[{a, b, c, d, m}, x] && EqQ[a*d - b*c*(m + 2), 0]

Rule 3487

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[1/(a^(m - 2)*b
*f), Subst[Int[(a - x)^(m/2 - 1)*(a + x)^(n + m/2 - 1), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b, e, f, n}, x
] && EqQ[a^2 + b^2, 0] && IntegerQ[m/2]

Rubi steps

\begin {align*} \int \frac {\sec ^4(c+d x)}{(a+i a \tan (c+d x))^4} \, dx &=-\frac {i \operatorname {Subst}\left (\int \frac {a-x}{(a+x)^3} \, dx,x,i a \tan (c+d x)\right )}{a^3 d}\\ &=\frac {\tan (c+d x)}{d \left (a^2+i a^2 \tan (c+d x)\right )^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.07, size = 32, normalized size = 1.10 \[ \frac {i \sec ^4(c+d x)}{4 d (a+i a \tan (c+d x))^4} \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]^4/(a + I*a*Tan[c + d*x])^4,x]

[Out]

((I/4)*Sec[c + d*x]^4)/(d*(a + I*a*Tan[c + d*x])^4)

________________________________________________________________________________________

fricas [A]  time = 0.66, size = 17, normalized size = 0.59 \[ \frac {i \, e^{\left (-4 i \, d x - 4 i \, c\right )}}{4 \, a^{4} d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^4/(a+I*a*tan(d*x+c))^4,x, algorithm="fricas")

[Out]

1/4*I*e^(-4*I*d*x - 4*I*c)/(a^4*d)

________________________________________________________________________________________

giac [A]  time = 1.69, size = 44, normalized size = 1.52 \[ -\frac {2 \, {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{a^{4} d {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - i\right )}^{4}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^4/(a+I*a*tan(d*x+c))^4,x, algorithm="giac")

[Out]

-2*(tan(1/2*d*x + 1/2*c)^3 - tan(1/2*d*x + 1/2*c))/(a^4*d*(tan(1/2*d*x + 1/2*c) - I)^4)

________________________________________________________________________________________

maple [A]  time = 0.45, size = 36, normalized size = 1.24 \[ \frac {-\frac {1}{\tan \left (d x +c \right )-i}-\frac {i}{\left (\tan \left (d x +c \right )-i\right )^{2}}}{d \,a^{4}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^4/(a+I*a*tan(d*x+c))^4,x)

[Out]

1/d/a^4*(-1/(tan(d*x+c)-I)-I/(tan(d*x+c)-I)^2)

________________________________________________________________________________________

maxima [B]  time = 0.68, size = 67, normalized size = 2.31 \[ -\frac {3 \, {\left (\tan \left (d x + c\right )^{2} - i \, \tan \left (d x + c\right )\right )}}{{\left (3 \, a^{4} \tan \left (d x + c\right )^{3} - 9 i \, a^{4} \tan \left (d x + c\right )^{2} - 9 \, a^{4} \tan \left (d x + c\right ) + 3 i \, a^{4}\right )} d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^4/(a+I*a*tan(d*x+c))^4,x, algorithm="maxima")

[Out]

-3*(tan(d*x + c)^2 - I*tan(d*x + c))/((3*a^4*tan(d*x + c)^3 - 9*I*a^4*tan(d*x + c)^2 - 9*a^4*tan(d*x + c) + 3*
I*a^4)*d)

________________________________________________________________________________________

mupad [B]  time = 3.39, size = 25, normalized size = 0.86 \[ -\frac {\mathrm {tan}\left (c+d\,x\right )}{a^4\,d\,{\left (\mathrm {tan}\left (c+d\,x\right )-\mathrm {i}\right )}^2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(cos(c + d*x)^4*(a + a*tan(c + d*x)*1i)^4),x)

[Out]

-tan(c + d*x)/(a^4*d*(tan(c + d*x) - 1i)^2)

________________________________________________________________________________________

sympy [A]  time = 3.79, size = 95, normalized size = 3.28 \[ \begin {cases} \frac {i \sec ^{4}{\left (c + d x \right )}}{4 a^{4} d \tan ^{4}{\left (c + d x \right )} - 16 i a^{4} d \tan ^{3}{\left (c + d x \right )} - 24 a^{4} d \tan ^{2}{\left (c + d x \right )} + 16 i a^{4} d \tan {\left (c + d x \right )} + 4 a^{4} d} & \text {for}\: d \neq 0 \\\frac {x \sec ^{4}{\relax (c )}}{\left (i a \tan {\relax (c )} + a\right )^{4}} & \text {otherwise} \end {cases} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**4/(a+I*a*tan(d*x+c))**4,x)

[Out]

Piecewise((I*sec(c + d*x)**4/(4*a**4*d*tan(c + d*x)**4 - 16*I*a**4*d*tan(c + d*x)**3 - 24*a**4*d*tan(c + d*x)*
*2 + 16*I*a**4*d*tan(c + d*x) + 4*a**4*d), Ne(d, 0)), (x*sec(c)**4/(I*a*tan(c) + a)**4, True))

________________________________________________________________________________________